
#include "ProxyHost.h"
#include <iostream>

ProxyHost::ProxyHost(Host* host)
    : host_(host)
{

}

void ProxyHost::Request(unsigned int ip, std::string data)
{
  std::cout << "请求地址：" << std::hex << ip << std::endl;
  std::cout << "请求体：" << data << std::endl;
  // ...
  host_->Request(0xC0A85064, "加密后的数据：" + data);
  // ...
}

ProxyHost::~ProxyHost()
{
  delete host_;
  host_ = nullptr;
}
